package com.itfreer.gis.map.dictionary;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 图层目录
 */
@Component
public class DicType extends LocalDictionaryBase {

    @Override
    public String getDictionaryName() {
        return "d_dictype";
    }

    @Override
    protected List<DictionaryEntity> getDictionarys() {
        List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
        DictionaryEntity item = new DictionaryEntity();
        item.setId("1");
        item.setCode("1");
        item.setDisplay("图层组");
        item.setOrder(1);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("2");
        item.setCode("2");
        item.setDisplay("图层");
        item.setOrder(2);
        list.add(item);

        return list;
    }
}
